
d={"6-1":{"买菜":19,"打车":40,"淘宝购物":20.3,"冷饮":3.5},
   "6-2":{"买菜":9,"打车":4,"充话费":100,"电费":30},
   "6-3":{"买笔记本":4.9,"买笔记本电脑":6998,"水费":53,"被骗":99}}
#统计所有开支：
total=0
for (x,y) in d.items():
   for (a,b) in y.items():
      total+=b

print("总开支：",total,"元")